* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    overflow: hidden;
    font-family: Helvetica;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}
body {
    font-family: Helvetica, sans-serif;
    margin: 0; font-size: 13px; line-height: 1.231;
}


#viewport {
    background-color: #32394A;
}

#close-mask {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background-color: transparent;
}
body.menu-open #close-mask {
    display: block;
}

#page {
    position: relative;
    z-index: 2;
    min-width: 320px;
    background-color: #fff;
    -webkit-transition-property: -webkit-transform;
    -webkit-transform: translate3d(0, 0, 0);
}

body.menu-opening #page,
body.menu-closing #page {
    -webkit-transition-duration: 200ms;
    -webkit-transition-timing-function: ease-in;
}
body.menu-moving #page {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-user-select: none;
}

    #page > header {
        height: 43px;
        line-height: 43px;
        background: -webkit-gradient( linear, left top, left bottom, from(#738ABA), to(#2C4987) );
        background: -moz-linear-gradient(top, #738ABA 0%, #2C4987 100%);
        border-color: #111A33;
        box-shadow: inset 0 1px 1px -1px white, 0 1px 5px rgba(0,0,0,.5);
        -webkit-box-shadow: inset 0 1px 1px -1px white, 0 1px 5px rgba(0,0,0,.5);
        -webkit-transition: left 200ms ease-in;
        -moz-transition: left 200ms ease-in;
    }
    #page > header .trigger {
        position: absolute;
        z-index: 2;
        top: 11px;
        left: 14px;
        display: block;
        width: 24px;
        height: 21px;
        background: transparent url(https://s-static.ak.facebook.com/rsrc.php/v1/y8/r/NwLTcDwF0zP.png) no-repeat;
    }
    #page > header .icons {
        position: absolute;
        left: 50%;
        margin-left: -72px;
        top: 9px;
    }
    #page > header .icons > span {
        display: inline-block;
        padding: 0 8px;
    }

    #page .story {
        position: relative;
        padding: 7px;
        border-top: 1px solid #E9E9E9;
        background-color: #fff;
    }
    #page .story > img {
        position: absolute;
    }
    #page .story .contents {
        margin-left: 50px;
    }
    #page .story .contents .name {
        font-size: 14px;
        color: #3B5998;
        text-decoration: none;
    }
    #page .story .contents .actions {
        color: gray;
        margin: 6px 25px 3px 0;
        
        font-size: 12px;
        line-height: 15px;
    }
    #page .story .contents .meta {
        position: relative;
        margin-top: 12px;
        padding: 4px 0 4px 9px;
        background: #EDEFF4;
        border-bottom: 1px solid #E5EAF1;
        border-top: 1px solid #EDEFF4;
        font-weight: bold;
        color: #3B5998;
    }
    #page .story .contents .meta::after {
        content: "";
        position: absolute;
        top: -8px;
        left: 10px;
        border-style: solid;
        border-width: 0 8px 8px;
        border-color: #EDEFF4 transparent;
        display: block;
        width: 0;
    }
    #page .story .contents .meta span {
        padding-right: 10px;
    }
    #page .story .contents .meta span img {
        vertical-align: text-bottom;
    }
    
#composer {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    box-orient: horizontal;
    -moz-box-orient: horizontal;
    padding: 7px 4px;
    background-color: #F2F2F2;
    border-bottom: 1px solid #CCC;
}
#composer button {
    display: block;
    margin: 0 4px;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    color: #505C77;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
    border: 1px solid;
    border-color: #9599A1 #A8ABB4 #ACB1BB;
    -webkit-box-shadow: inset 0 1px 1px rgba(43, 48, 60, .18), 0 1px 0 white;
    box-shadow: inset 0 1px 1px rgba(43, 48, 60, .18), 0 1px 0 white;
    background: -webkit-gradient( linear, left top, left bottom, from(#FDFEFE), to(#F0F1F2) );
    background: -moz-linear-gradient(top, #FDFEFE 0%, #F0F1F2 100%);
    -webkit-background-clip: padding-box;
    font-weight: bold;
    font-size: 12px;
    line-height: 27px;
    min-width: 50px;
}
#composer button img {
    position: relative;
    top: -2px;
    display: inline-block;
    margin-right: 1px;
    vertical-align: text-top;
}

#menu {
    position: fixed;
    width: 260px;
    top: 0;
    left: 0;
    
}
body.menu-open #menu {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

    #menu > header {
        padding: 0 8px;
        width: 260px;
        height: 43px;
        background-image: -webkit-gradient( linear, left top, left bottom, from(#434B5B), to(#242B39));
        background-image: -moz-linear-gradient(top, #434B5B 0%, #242B39 100%);
        border-bottom: 1px solid #000;
        border-top: 1px solid #5F6673;  
        color: #fff;
    }

    #menu #search {
        position: relative;
        top: 6px;
        width: 100%;
        padding: 2px 8px 0 10px;
        background: -webkit-gradient( linear, 0 0, 0 100%, from(#414A5A), to(#4C5464));
        background: -moz-linear-gradient(top, #414A5A 0%, #4C5464 100%);
        color: #AAB2C0;
        border: 1px solid #222936;
        border-radius: 15px;
        -webkit-border-radius: 15px;
        box-shadow: inset 0 1px 2px -1px rgba(0, 0, 0, .5), 0 1px 2px -1px rgba(255, 255, 255, .4);
        -webkit-box-shadow: inset 0 1px 2px -1px rgba(0, 0, 0, .5), 0 1px 2px -1px rgba(255, 255, 255, .4);
        height: 27px;
        outline: none;
        font-size: 13px;
        font-weight: bold;
    }
    #menu #search::-webkit-input-placeholder {
        color: #AAB2C0;
        font-weight: normal;
    }
    #menu #search::input-placeholder {
        color: #AAB2C0;
        font-weight: normal;
    }

    #menu .separator {
        background: #434B5C;
        background: -webkit-gradient( linear, left top, left bottom, from(#434B5C), to(#394152) );
        background: -moz-linear-gradient(top, #434B5C 0%, #394152 100%);
        border-bottom: 1px solid #242A37;
        border-top: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
        -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
        color: #7A8292;
        padding: 4px 0 4px 8px;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
        font-size: 10px;
        line-height: 12px;
        text-transform: uppercase;
    }
    #menu li {
        position: relative;
        display: block;
        list-style: none;
        min-height: 43px;
        line-height: 40px;
        padding: 3px 0 3px 8px;     
        background-color: #32394A;
        border-bottom: 1px solid #242A37;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
        -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
        font-size: 16px;
        color: #C4CCDA;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
    }
    #menu .active {
        background-color: #262C3A;
    }
    #menu li img {
        vertical-align: middle;
        display: block;
        float: left;
        margin: 4px 5px 0 0;
    }
    #menu li .count {
        position: absolute;
        right: 10px;
        top: 15px;
        background: #3E485E;
        background: -webkit-gradient( linear, left top, left bottom, color-stop(0, #3E485E), color-stop(1, #323A4D));
        background: -moz-linear-gradient( left top, left bottom, color-stop(0, #3E485E), color-stop(1, #323A4D));
        border-top: 1px solid #505A63;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
        -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
        color: #BFC5D2;
        padding: 1px 3px 3px 4px;
        display: inline-block;
        line-height: 12px;
        min-width: 11px;
        text-align: center;
        font-weight: bold;
        font-size: 12px;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
    }
    #menu li#copy {
        padding: 10px 8px;
        font-size: 14px;
        line-height: 18px;
    }
    #menu li#copy p {
        font-weight: 100;
    }